Skip to content

refactor: cleanup match ticker step 3#7694

Merged
Rathoz merged 7 commits into
mainfrom
cleanup-matchticker-3
Jul 9, 2026
Merged

refactor: cleanup match ticker step 3#7694
Rathoz merged 7 commits into
mainfrom
cleanup-matchticker-3

Conversation

@Rathoz

@Rathoz Rathoz commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

The goal of this PR is to remove the MatchGroupUtil.matchFromRecord from the Widget. Most of the changes is towards that, with some minor cleanup

How did you test this change?

dev

@ElectricalBoy ElectricalBoy added the c: match_ticker match2 based match ticker label Jun 25, 2026
@Rathoz Rathoz force-pushed the cleanup-matchticker-2 branch from c3940da to a07d24c Compare July 1, 2026 08:36
@Rathoz Rathoz force-pushed the cleanup-matchticker-3 branch from 1023823 to d278a5b Compare July 1, 2026 08:39
@Rathoz Rathoz force-pushed the cleanup-matchticker-2 branch from e67ff8d to 7e97926 Compare July 2, 2026 11:52
@Rathoz Rathoz linked an issue Jul 3, 2026 that may be closed by this pull request
@Rathoz Rathoz force-pushed the cleanup-matchticker-3 branch from d278a5b to c500892 Compare July 7, 2026 15:33
Base automatically changed from cleanup-matchticker-2 to main July 8, 2026 10:46
@Rathoz Rathoz force-pushed the cleanup-matchticker-3 branch from c500892 to 57b46a8 Compare July 8, 2026 10:48
@Rathoz Rathoz marked this pull request as ready for review July 8, 2026 10:48
@Rathoz Rathoz requested review from a team as code owners July 8, 2026 10:48
Copilot AI review requested due to automatic review settings July 8, 2026 10:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the match ticker pipeline to pass parsed MatchGroupUtilMatch objects through the controller and into the ticker wrapper, and to carry per-game display metadata via a dedicated gameData object instead of embedding “asGame” fields onto the match table.

Changes:

  • MatchTickerController.fetchMatches() now converts LPDB records to MatchGroupUtilMatch early and returns {match=..., gameData=...} entries.
  • Per-game expansion now returns {match=..., gameData=...} records and the ticker wrapper consumes them directly.
  • Removes configurable query column selection in favor of a fixed QUERY_COLUMNS list.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
lua/wikis/commons/Widget/Match/Ticker/Wrapper.lua Updates wrapper to consume {match, gameData} entries and pass both to MatchCard.
lua/wikis/commons/MatchTicker/Controller.lua Refactors LPDB parsing/expansion/sorting to operate on parsed matches and emit {match, gameData} records.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lua/wikis/commons/MatchTicker/Controller.lua Outdated
Comment thread lua/wikis/commons/MatchTicker/Controller.lua Outdated
Comment thread lua/wikis/commons/MatchTicker/Controller.lua Outdated
@ElectricalBoy ElectricalBoy linked an issue Jul 9, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread lua/wikis/commons/MatchTicker/Controller.lua
Comment thread lua/wikis/commons/MatchTicker/Controller.lua Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@Rathoz Rathoz merged commit 796f664 into main Jul 9, 2026
10 checks passed
@Rathoz Rathoz deleted the cleanup-matchticker-3 branch July 9, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: match_ticker match2 based match ticker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cleanup MatchTicker implementation Incorrect match result display in recent matches under infoboxes

4 participants